package com.xzm.project.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;

import com.orhanobut.logger.Logger;

import cn.wuyu.baselibrary.utils.ToastUtil;

/**
 * author : xuzongmeng
 * date   : 2019/9/2
 * desc   : 描述
 */
public class MyReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
//        IntentFilter intentFilter = new IntentFilter();
//        intentFilter.addAction(Intent.ACTION_VOICE_COMMAND);
        Logger.d("====onReceive=");
        String msg = intent.getStringExtra("msg");
        if (!TextUtils.isEmpty(msg)){
            ToastUtil.showTest(msg);
        }
    }
}
